package com.ajk.server.service;
import java.util.List;

import com.ajk.server.model.Treatment;
import com.ajk.server.model.query.TreatmentQuery;
import com.ajk.server.model.response.TreatmentRes;

/**
 * 就诊记录  <br>
 * t_treatment <br>
 * v1.0 2016-05-01
 */
 public interface TreatmentService {
	
	/**
 	*根据ID删除 就诊记录
 	*/
 	public Integer deleteTreatmentById(Integer id);
 	
 	/**
 	*新增 就诊记录
 	*/
 	public Integer batchInsertTreatment(List<? extends Treatment> treatments);
 	
 	/**
 	*新增 就诊记录
 	*/
 	public Integer insertTreatment(Treatment domain);
 
 	
 	/**
 	*更新 就诊记录
 	*/
 	public Integer updateTreatment(Treatment domain);
 	
 	/**
 	*根据ID查询 就诊记录
 	*/
 	public Treatment findTreatmentById(Integer id);

	/**
 	*通过query 查询 就诊记录
 	*/
	public List<TreatmentRes> findTreatmentByQuery(TreatmentQuery query);	
	
	/**
 	*通过query count总条数
 	*/
 	public Integer countTreatmentByQuery(TreatmentQuery query);
 	
 	/**
 	* 通过ids查询
 	*/
 	public List<Treatment> findTreatmentByIds(List<Integer> ids);
 	
}	